const koaJwt = require('koa-jwt')
const { secret } = require('../utils/jwtToken')

module.exports = koaJwt({
  secret
}).unless({ // 配置白名单
  path: [
    /\/api\/v1\/user\/register/,
    /\/api\/v1\/user\/login/,
    /\/api\/v1\/user\/findOne/
  ]
})